/*
 * Created on 2006-04-30
 *
 * Copyright: Bluejay Networks Inc. & Inquiry Management Systems Ltd.  2004
 *
 * This software is the proprietary information of Bluejay Networks Inc. & 
 * Inquiry Management Systems Ltd.  
 * Use is subject to license terms.
 */
package com.ims.iaa.JavaScript;

import java.io.PrintStream;
import java.net.URL;

import com.ims.iaa.html.ImpAnalyzer;

/**
 * @author changsheng
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class JSParserFactory {
	public static JavaScriptParser getJSParser(URL baseURL , ImpAnalyzer impa , PrintStream out,int specialJS)
	{
		if( specialJS == 1 )
			return new CheckM8JSParser(baseURL, impa, out);//if 1 then need do checkm8
		else
			return new JavaScriptParser(baseURL, impa, out);
	}
}
